package com.ruoyi.audit.service.impl;

import java.util.List;

import com.ruoyi.domain.CashRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.audit.mapper.CashRecordMapper;
import com.ruoyi.audit.service.ICashRecordService;

/**
 * 提现记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-03-23
 */
@Service
public class CashRecordServiceImpl implements ICashRecordService 
{
    @Autowired
    private CashRecordMapper cashRecordMapper;

    /**
     * 查询提现记录
     * 
     * @param cashid 提现记录ID
     * @return 提现记录
     */
    @Override
    public CashRecord selectCashRecordById(Long cashid)
    {
        return cashRecordMapper.selectCashRecordById(cashid);
    }

    /**
     * 查询提现记录列表
     * 
     * @param cashRecord 提现记录
     * @return 提现记录
     */
    @Override
    public List<CashRecord> selectCashRecordList(CashRecord cashRecord)
    {
        return cashRecordMapper.selectCashRecordList(cashRecord);
    }

    /**
     * 新增提现记录
     * 
     * @param cashRecord 提现记录
     * @return 结果
     */
    @Override
    public int insertCashRecord(CashRecord cashRecord)
    {
        return cashRecordMapper.insertCashRecord(cashRecord);
    }

    /**
     * 修改提现记录
     * 
     * @param cashRecord 提现记录
     * @return 结果
     */
    @Override
    public int updateCashRecord(CashRecord cashRecord)
    {
        return cashRecordMapper.updateCashRecord(cashRecord);
    }

    /**
     * 批量删除提现记录
     * 
     * @param cashids 需要删除的提现记录ID
     * @return 结果
     */
    @Override
    public int deleteCashRecordByIds(Long[] cashids)
    {
        return cashRecordMapper.deleteCashRecordByIds(cashids);
    }

    /**
     * 删除提现记录信息
     * 
     * @param cashid 提现记录ID
     * @return 结果
     */
    @Override
    public int deleteCashRecordById(Long cashid)
    {
        return cashRecordMapper.deleteCashRecordById(cashid);
    }
}
